<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewTaskTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="tasvimessagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewTaskLabel_prioritaet}"/>
                    <h:outputText value="#{taskController.selected.prioritaet}" title="#{bundle.ViewTaskTitle_prioritaet}"/>
                    <h:outputText value="#{bundle.ViewTaskLabel_effort}"/>
                    <h:outputText value="#{taskController.selected.effort}" title="#{bundle.ViewTaskTitle_effort}"/>
                    <h:outputText value="#{bundle.ViewTaskLabel_userstory}"/>
                    <h:outputText value="#{taskController.selected.userstory}" title="#{bundle.ViewTaskTitle_userstory}"/>
                    <h:outputText value="#{bundle.ViewTaskLabel_sprint}"/>
                    <h:outputText value="#{taskController.selected.sprint}" title="#{bundle.ViewTaskTitle_sprint}"/>
                    <h:outputText value="#{bundle.ViewTaskLabel_taskid}"/>
                    <h:outputText value="#{taskController.selected.taskid}" title="#{bundle.ViewTaskTitle_taskid}"/>
                    <h:outputText value="#{bundle.ViewTaskLabel_taskbezeichnung}"/>
                    <h:outputText value="#{taskController.selected.taskbezeichnung}" title="#{bundle.ViewTaskTitle_taskbezeichnung}"/>
                    <h:outputText value="#{bundle.ViewTaskLabel_taskbeschreibung}"/>
                    <h:outputText value="#{taskController.selected.taskbeschreibung}" title="#{bundle.ViewTaskTitle_taskbeschreibung}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{taskController.destroyAndView}" value="#{bundle.ViewTaskDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewTaskEditLink}"/>
                <br />
                <h:commandLink action="#{taskController.prepareCreate}" value="#{bundle.ViewTaskCreateLink}" />
                <br />
                <h:commandLink action="#{taskController.prepareList}" value="#{bundle.ViewTaskShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewTaskIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
